From: Sebastian Wick Date: Tue, 14 Oct 2025 20:36:16 +0000 (+0200) Subject: shellDBus: Send an activation token for Accelerator(De)Activated X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~44^2~96 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d0e8dc2b66f324f6d6526c5cd333c19359047a0a;p=gnome-shell.git shellDBus: Send an activation token for Accelerator(De)Activated This will be useful for the global shortcuts portal implementation. Part-of: --- diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index d40d8705e..17f43e46e 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -286,9 +286,14 @@ export class GnomeShell { const connection = this._dbusImpl.get_connection(); const info = this._dbusImpl.get_info(); + + const context = global.create_app_launch_context(0, -1); + const token = context.get_startup_notify_id(null, []); + const params = { 'timestamp': GLib.Variant.new('u', timestamp), 'action-mode': GLib.Variant.new('u', Main.actionMode), + 'activation-token': GLib.Variant.new('s', token), }; const deviceNode = device.get_device_node();